package com.txMsg.server.config;

import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@ConfigurationProperties(prefix = "tx-msg")
@Component
@Data
public class TxMsgConfig {
    private static final Logger logger = LoggerFactory.getLogger(TxMsgConfig.class);
    /**
     * MQ最大发送次数
     */
    private  int maxSendCount = 3;
    /**
     * 回调时间-单位分钟
     */
    private  int callbackTime = 3;
    /**
     * 发送确认事务记录到MQ的数量
     */
    private int sendConfirmTxMsgSize=666;
    /**
     * 回调确认的事务消息数量
     */
    private int callbackTxMsgSize = 666;

}